﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MetadataBasedConfigArch.Model;
using System.Configuration;

namespace MetadataBasedConfigArch.Web
{
    public static class EntityUtil
    {
        private static string MDAConnectionStringKey = ConfigurationManager.AppSettings["MDAEntitiesName"];// "MDAEntities"; 

        public static string MDAConnectionString = ConfigurationManager.ConnectionStrings[MDAConnectionStringKey].ConnectionString;

        public static MDAEntities LoadEntities()
        {
            return new MDAEntities(MDAConnectionString);
        }
    }
}